{% load future wenlincms_tags wlcore_tags %}
{% load future wenlincms_tags wlcore_tags report_tags %}

  var alldata = {
            "total": [
                {% for obj in credit.total %}
                    {"{{ obj.year }}": {{ obj.value }}}{% if not forloop.last %},{% endif %}
                {% endfor %}
            ],
            {% for obj in credit.detail %}
                "{{ obj.year }}": {
                    "scores": {
                        "经营绩效": {{ obj.value.index_2_2|eldefault:"random" }},
                        "经营稳定": {{ obj.value.index_2_3|eldefault:"random" }},
                        "发展能力": {{ obj.value.index_2_4|eldefault:"random" }},
                        "资本实力": {{ obj.value.index_2_5|eldefault:"random" }},
                        "管理团队": {{ obj.value.index_2_1|eldefault:"random" }}
                    },
                    "performance": {
                        "盈利能力": {{ obj.value.index_3_4|eldefault:"random" }},
                        "经营成本": {{ obj.value.index_3_5|eldefault:"random" }},
                        "资金压力": {{ obj.value.index_3_6|eldefault:"random" }},
                        "资产周转能力": {{ obj.value.index_3_7|eldefault:"random" }},
                        "市场地位": {{ obj.value.index_3_8|eldefault:"random" }}
                    },
                    "stability": {
                        "负面记录": 80,
                        "权力稳定": {{ obj.value.index_3_10|eldefault:"random" }},
                        "集团稳定性": 75,
                        "经营波动": {{ obj.value.index_3_9|eldefault:"random" }},
                        "电力情况": {{ obj.value.index_3_13|eldefault:"0" }},
                    },
                    "ability": {
                        "业务增长": 0,
                        "研发投入": 0,
                        "财务增长": {{ obj.value.index_3_11|eldefault:"random" }}
                    },
                    "relations": {
                        "关联企业评分": 0,
                        "股东关联": {{ obj.value.index_3_3 }},
                        "股东特质": {{ obj.value.index_3_12|eldefault:"random" }}
                    },
                    "team": {
                        "团队管理能力": {{ obj.value.index_3_3|eldefault:0 }},
                        "行业任职经验": {{ obj.value.index_3_2|eldefault:"random" }},
                        "团队教育背景": {{ obj.value.index_3_1|eldefault:"random" }}
                    },
                    "industryTrend": {

                            "农、林、牧、渔业":402,

                            "采矿业":413,

                            "制造业":433,

                            "电力、热力、燃气及水生产和供应业":419,

                            "建筑业":418,

                            "批发和零售业":432,

                            "交通运输、仓储和邮政业":430,

                            "住宿和餐饮业":421,

                            "信息传输、软件和信息技术服务业":427,

                            "金融业":409,

                            "房地产业":421,

                            "租赁和商务服务业":426,

                            "科学研究和技术服务业":436,

                            "水利、环境和公共设施管理业":421,

                            "居民服务、修理和其他服务业":420,

                            "教育":418,

                            "卫生和社会工作":433,

                            "文化、体育和娱乐业":425,

                            "公共管理、社会保障和社会组织":409,

                            "国际组织":409

                    },
                    "regionTrend": {

                            "北京市":435,

                            "天津市":441,

                            "河北省":415,

                            "山西省":384,

                            "内蒙古自治区":429,

                            "辽宁省":437,

                            "吉林省":420,

                            "黑龙江省":416,

                            "上海市":440,

                            "江苏省":441,

                            "浙江省":420,

                            "安徽省":426,

                            "福建省":428,

                            "江西省":513,

                            "山东省":438,

                            "河南省":429,

                            "湖北省":426,

                            "湖南省":424,

                            "广东省":443,

                            "广西壮族自治区":422,

                            "海南省":418,

                            "重庆市":399,

                            "四川省":436,

                            "贵州省":432,

                            "云南省":431,

                            "西藏自治区":411,

                            "陕西省":417,

                            "甘肃省":396,

                            "青海省":427,

                            "宁夏回族自治区":431,

                            "新疆维吾尔自治区":388
                    }

                }{% if not forloop.last %},{% endif %}
            {% endfor %}
        };
        drawEcharts(alldata, {{ latest_year }});
